<?php $this->load->view("common/page_header");?>
	<?php $this->load->view("common/top_banner");?>
	<?php $this->load->view("common/header");?>
	<div id="body_main">
		<?php $this->load->view('common/user_top');?>
		<div class="top_border">
			<div class="arrow_up" style="left:90px"></div>
		</div>
		
		<div id="body_content" class="user_info">
			<?php $this->load->view("common/user_info_table");?>
			
			<div class="margin_top15">
				<?php $this->load->view("common/user_info_navigator");?>
				<div class="user_info_content">
					<div style="border-bottom:2px solid #d9d9d9">
						<div class="bold">整体好评：
						<?php for($i = 0; $i < $score && $i < 5; $i++) {?>
							<img src="/img/star-on.png" />
						<?php }?>
						</div>
						<?php $this->load->view("common/page_controller");?>
						<div class="clear"></div>
					</div>
					<?php if (!empty($evaluates)) {?>
					<table class="b_table text_left_table vertical_top_table user_address_table" width="100%"  cellspacing="0">
						<?php foreach($evaluates as $evaluate) { ?>
						<tr>
							<td width="120">
								<a href="/user/show?user_id=<?php echo $evaluate['created_by']?>"><?php echo $evaluate['nickname']?></a>&nbsp;的评价：
							<br/>
							<?php for($i = 0; $i < $evaluate['score'] && $i < 5; $i++) {?>
								<img src="/img/star-on.png" />
							<?php }?>
							</td>
							<td>
								<div>
								<?php echo $evaluate['content']?>
								</div>
								<div class="margin_top10"><?php echo substr($evaluate['created'], 0, 10);?></div>
							</td>
						</tr>
						<?php } ?>
					</table>
					<?php }?>
					<?php $this->load->view("common/page_controller");?>
				</div>
				
				<div class="clear"></div>
			</div>
		</div>
		
		
		<?php $this->load->view("common/footer");?>		
		
		<p class="center">Page rendered in {elapsed_time} seconds</p>
	</div>
	
<?php $this->load->view("common/page_footer");?>
